﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using uTorrentNetClient.ModelDesign.Contracts;

namespace uTorrentNetClient.ModelDesign.NotifyWindow.View
{
    /// <summary>
    /// Interaction logic for NotifyWindowView.xaml
    /// </summary>
    public partial class NotifyWindowView : Window, INotifyWindowView
    {
        public NotifyWindowView(INotifyWindowModel notifyWindowModel)
        {
            DataContext = notifyWindowModel;
            InitializeComponent();

            this.Left = SystemParameters.PrimaryScreenWidth - this.Width;
            this.Top = SystemParameters.PrimaryScreenHeight - this.Height - 50;
        }

        public void ShowView()
        {
            Show();
        }

        public void CloseView()
        {
            Hide();
        }

        public void Destroy()
        {
            Close();
        }
    }
}
